<head th:fragment=header(title)>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title th:text="${title}"></title>
    <link href="../static/css/style.css" rel="stylesheet"/>
    <script src="../static/common.js"></script>
</head>


<head th:fragment=headermain(title)>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/unit/resource/img/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="/business/plugin/animate/animate.css" rel="stylesheet"/>
    <link href="/business/plugin/fontawesome/fontawesome.min.css" rel="stylesheet"/>
    <link href="/business/plugin/layui/css/layui.css" rel="stylesheet"/>
    <link href="/business/unit/resource/css/style.css" rel="stylesheet"/>
    <title th:text="${title}"></title>
</head>

<div th:fragment="top">
    <div class="page-header">
        <div class="center">
            <img src="/platform/resource/img/logoyxfw.png"/>
            <div class="page-header-nav">
                <c:if test="${not empty sessionScope.hzUnit.name}">
                    <span>您好，${sessionScope.hzUnit.name}。</span>
                    <a class="indexUrl" href="/index">系统首页</a>
                    <span>|</span>
                    <a class="indexUrl" href="/loginOut">退出登录</a>
                </c:if>
                <c:if test="${empty sessionScope.hzUnit.name}">
                    <div class="page-header-nav">
                        <a href="/loginIndex">账户登录</a>
                        <span>|</span>
                        <a href="/getUnitPassword">账号找回</a>
                        <span>|</span>
                        <a href="/showMember">账号注册</a>
                    </div>
                </c:if>
            </div>

        </div>
    </div>
    <script type="text/javascript">
        $(".indexUrl").click(function () {
            sessionStorage.setItem("urlstr", '');
        })
    </script>
</div>
<div th:fragment="left">
    <div class="page-wrap-nav">
        <div class="page-wrap-nav-item">
            <h3>
                <i class="fa fa-user"></i>
                <span>账户中心</span>
            </h3>
            <a data-id="/account"
               href="/account">单位账户</a>
            <a data-id="/message/hzUnitMessage/unreadMessage"
               href="/message/hzUnitMessage/unreadMessage">消息中心</a>
            <a data-id="0"
               href="/hzhelp/question/category?recommend=1&menuName=helpCenter">帮助中心</a>
            <a data-id="0" class="page-btn-signout">安全退出</a>
        </div>
        <div class="page-wrap-nav-item">
            <h3>
                <i class="fa fa-briefcase"></i>
                <span>业务办理</span>
            </h3>
            <a data-id="/hzpolicy/hzPolicyFront/policySituation"
               href="/hzpolicy/hzPolicyFront/policySituation">入会业务</a>
            <a data-id="/hzclaim/hzClaimFront/unitClaimData?pageNo=1&pageSize=10"
               href="/hzclaim/hzClaimFront/unitClaimData?pageNo=1&pageSize=10">申领业务</a>
            <a data-id="/hzhelp/advice/hzHelpAdvice/form"
               href="/hzhelp/advice/hzHelpAdvice/form">投诉与建议</a>
        </div>
        <div class="page-wrap-nav-item">
            <h3>
                <i class="fa fa-envelope"></i>
                <span>信息中心</span>
            </h3>
            <a data-id="/hzhelp/notice/hzHelpNotice/list?types=1"
               href="/hzhelp/notice/hzHelpNotice/list?types=1">通知公告</a>
            <a data-id="/hzhelp/notice/hzHelpNotice/list?types=2"
               href="/hzhelp/notice/hzHelpNotice/list?types=2">文件下发</a>
            <a data-id="/hzhelp/notice/hzHelpNotice/list?types=3"
               href="/hzhelp/notice/hzHelpNotice/list?types=3">文档资料</a>
        </div>
    </div>

    <script type="text/javascript">
        var urlPath = window.location.href;
        var flag = false;
        $(".page-wrap-nav a").each(function () {
            if ($(this).attr('href') != '' && (urlPath + '/').indexOf($(this).attr('href')) > -1) {
                sessionStorage.setItem("urlstr", urlPath);
            }
        })
        var urlstr = sessionStorage.getItem("urlstr");
        $(".page-wrap-nav a").each(function () {
            if ((urlstr + '/').indexOf($(this).attr('href')) > -1 && $(this).attr('href') != '') {
                $(this).addClass('on');
            } else {
                $(this).removeClass('on');
            }
        });

        // 退出
        $(".page-btn-signout").click(function () {
            layer.confirm('您确实要退出系统?', {icon: 3, title: '退出提示'}, function (index) {
                window.location.href = "/loginOut";
            });
        });

    </script>
</div>
<div th:fragment="footer">
    <div class="page-footer">
        <div class="center">
            <div class="page-footer-info">
                <div class="page-footer-link">
                    <a href="/hzhelp/question/category?recommend=1&menuName=helpCenter">帮助中心</a>
                    <span>|</span>
                    <a href="/hzhelp/advice/hzHelpAdvice/form">意见与投诉</a>
                    <!-- <span>|</span>
                    <a href="/UnitHelp/Agreement">服务协议</a> -->
                    <!-- <span>|</span>
                    <a href="/UnitAccount/Message">消息中心</a> -->
                    <span>|</span>

                    <!-- <span>|</span>
                    <a href="/Unit/Organize">地图导航</a> -->

                </div>
                <div class="page-footer-copyright">
                    <p>联系地址：呼和浩特赛罕区腾飞南路28号如意大厦A座</p>
                    <p>技术支持：<a href="#" target="_blank">内蒙古奇讯电子技有限公司</a></p>
                    <!-- <p>&#169;时间(2020) 系统名称 备案号</p> -->
                    <p>建议使用1280x768以上分辨率，google、Firefox、360、QQ等最新版浏览器浏览本站可获得最佳效果.</p>
                </div>
            </div>

        </div>
    </div>
</div>
<div th:fragment="unLoginTop">
    <link href="/business/unit/resource/css/style.css" rel="stylesheet"/>

    <script src="/business/common.js"></script>
    <script src="/business/unit/resource/js/script.js"></script>
    <!--省市区三级联动插件-->
    <link href="/business/plugin/city-picker/css/city-picker.css" rel="stylesheet" type="text/css"/>
    <script src="/business/plugin/city-picker/js/city-picker.data.js" type="text/javascript"></script>
    <script src="/business/plugin/city-picker/js/city-picker.js" type="text/javascript"></script>

    <div class="page-header">
        <div class="center">
            <img src="/business/platform/resource/img/logoyxfw.png"/>
            <div class="page-header-nav">
                <c:if test="${not empty sessionScope.hzUnit.name}">
                    <span>您好，${sessionScope.hzUnit.name}。</span>
                    <a class="indexUrl" href="/index">系统首页</a>
                    <span>|</span>
                    <a class="indexUrl" href="/loginOut">退出登录</a>
                </c:if>
                <c:if test="${empty sessionScope.hzUnit.name}">
                    <div class="page-header-nav">
                        <a href="/loginIndex">账户登录</a>
                        <span>|</span>
                        <a href="/getUnitPassword">账号找回</a>
                        <span>|</span>
                        <a href="/showMember">账号注册</a>
                    </div>
                </c:if>
            </div>
        </div>
    </div>
</div>